package com.dingwen.treasure.task.quartz.dto;

import com.dingwen.treasure.base.enums.QuartzStateEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * 　QuartzInfoStateDTO: 定时任务修改状态DTO
 * 　@author dingwen
 * 　@date 2022/5/18$
 *
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
@ToString
public class QuartzInfoStateDTO {

    /**
     * 主键
     */
    @NotNull(message = "定时任务主键Id不能为空")
    @ApiModelProperty(value = "定时任务主键id", dataType = "Integer",required = true)
    private Long id;

    /**
     * 是否启用: {@link QuartzStateEnum}
     */
    @NotNull(message = "定时任务状态不能为空")
    @ApiModelProperty(value = "定时任务状态", dataType = "QuartzStateEnum",required = true)
    private QuartzStateEnum state;
}
